package com.taotie.controller.user;

import com.taotie.entity.AiMessageModel;
import com.taotie.service.AiService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 千帆大模型ai调用
 */
@RestController
@RequestMapping("/user/ai")
@Slf4j
@Api(tags = "ai调用接口")
public class AiController {

    @Autowired
    private AiService aiService;


    @PostMapping
    public String message(@RequestBody List<AiMessageModel> message) {
        return aiService.getMessage(message);
    }

}
